﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DemoPageCustomScript.aspx.cs" Inherits="CodeCounsel.ScriptOnDemand.Layouts.CodeCounsel.ScriptOnDemand.DemoPage" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:ScriptLink runat="server" 
        Name="CodeCounsel.ScriptOnDemand/Scripts.js" 
        Localizable="false" 
        LoadAfterUI="true"
        Defer="true" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <script type="text/javascript">
        ExecuteOrDelayUntilScriptLoaded(
            function () {
                EnableULS();
            },
            "CodeCounsel.ScriptOnDemand.js");

        function AddToULS() {
                var guid = SP.Guid.newGuid();
                SP.ULS.log("I generated a guid: " + guid);
        }
    </script>
    <input type="button" value="Add to ULS" onclick="AddToULS(); return false;" />
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Script On Demand Demo Page
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Script On Demand Demo Page
</asp:Content>
